<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>我的第一段JavaScript</h1>
	<p id="demo">JavaScript能改变HTML元素的内容。</p>
	<p id="demo2">我的第一个段落</p>
	<button type="butoon" onclick="myFunction()">点击这里</button>
	<script type="text/javascript">
		function myFunction(){
			x=document.getElementById('demo');
		    x.innerHTML="Hello JavaScript!";
		}
		document.getElementById('demo2').innerHTML="My First JavaScript";
	</script>
</body>
</html>